n=int(input("请输入三角形的行数："))
for i in range(1,n):
    print(" "*i+(n-i)*"*",end="")
    print()

for j in range(0,5):
    print((5-j)*"*"+" "*j,end="")
    print()